Tory leadership contender claims ‘there was a time when there wasn’t any maternity pay and people were having more babies’