Manchester United manager Louis van Gaal has confirmed that Wayne Rooney will miss the Red Devils' game against West Ham due to a "nasty" ankle injury.