In her new memoir, the creator and writer of the hit TV series Girls writes with fluency and candour about the price of stardom