Fathers will get improved contact with their children following divorce, amid plans to rewrite the law governing custody disputes.