‘My diagnosis was a blessing’: composer Sally Beamish on tackling the condition that ruined every joyful memory