Best time to take out mortgage when buying home

Paying cash, refinancing later has its benefits