More than two million smart meters in the UK are not working, research suggests