A man accused of a stealing underwear from a shop in a knifepoint raid believed he was a female elf at the time, Belfast Crown Court has heard.