Winning the FA Cup could buy time for Louis van Gaal to succeed at Manchester United, says ex-England striker Alan Shearer.