Team GB won gold in the men's 4x200m freestyle relay thanks to a heroic effort from 18-year-old Matt Richards who contributed a pivotal third leg.