Lewis Hamilton back in the F1 groove in Hungaroring practice