Morocco's annual inflation rose to 1.8% in June from 0.4% a month earlier, driven by increases in food and non-food products, official data showed on Monday.