Manchester United climb into the top six of the Premier League after an entertaining victory over Burnley at Old Trafford.