The effect on the teenage brain of books like Twilight and the Harry Potter series is to be examined at Cambridge University.