Actress Helen Flanagan shared a post on social media about leaving a relationship when feeling 'lonely' and was flooded with support