Helen Flanagan diagnosed with psychosis after struggling with split from partner