Teenager Jonty Bravery, who threw a six-year-old boy from a viewing platform at the Tate Modern art gallery, has pleaded guilty to attempted murder.