Cher Lloyd 'was prescribed anti-depressants' while on The X Factor