McLaren’s Lewis Hamilton loses top spot after Hungarian grand prix woe