McCartney to headline Glastonbury Festival