Maternity leave to be taken by either parent under new plans