Meghan Trainor credits ‘heavy therapy’ with reviving her marriage