Man in court charged with theft and attempted robbery at Spar in Moray