A vulnerable young mother lay down in front of an express train after leaving a suicide note claiming “I was murdered” after suffering years of alleged abuse by her ex-boyfriend, a court has heard.