No 10 says Theresa May had “lost confidence in his ability to serve” in his role.