who wrote most of the songs in the beatles