Liverpool hold their nerve to beat Burnley