Manchester United survived an early scare to beat League Two Cambridge United and set up an FA Cup fifth-round trip to Preston North End.