The Office for National Statistics said gross domestic product contracted by 0.1% in May, following a 0.3% drop in April.