Barcelona defender Gerard Pique believes leaving Manchester United was the boost he needed to go on to become one of the world's best defenders.