Mercedes' Lewis Hamilton says he was 'grateful' to finish fifth after starting from the back of the grid at the Italian Grand Prix.