Masked man was able to rob a bank because manager was worried about challenging him in case he had a skin condition, court hears