A 15-year-old boy died from drowning after jumping off a pier in South Wales, a coroner has concluded.