Pregnant women will benefit from better maternity care as a new app and electronic health record system is rolled out across Wales.