Ferrari pair Lewis Hamilton and Charles Leclerc were left despondent after finishing fifth and eighth at the Austrian Grand Prix.