Japanese city apologises for flyers advising pregnant women on how to keep husbands happy