Tour de France winner Geraint Thomas says the abuse they suffered from some fans during the race strengthened the bond within the team.