Defending champion Carlos Alcaraz came from a set down twice to beat Frances Tiafoe on Day 5 at Wimbledon.