Ariana Grande has admitted Pharrell Williams pushed her to write about the bombing in Manchester when she returned from tour.