A teenager from Wiltshire has become the UK Rubik's Cube record holder after solving a puzzle in less than four seconds.