who wrote the song castle on the hill