Unpredictable weather patterns have exposed weaknesses in the models used to price risk as golf ball-sized hailstones on solar panels and lightning strikes on wind turbines have left insurers with much bigger bills than expected.