Sir Lewis Hamilton had a "pretty bad" time at the Hungarian Grand Prix and admitted he is "glad" the sport is going into its summer break.