Ed Sheeran granted a teenage girl her last request by singing to her before she passed away from cystic fibrosis just moments after hearing his song.