Many babies who are looked after by grandparents while their mothers are out at work might be better off in nurseries or crèches, a new study suggests.