Manchester United manager Erik ten Hag says Marcus Rashford's ability to play across the front has been vital.