The UK prime minister has faced calls from within his own party to resign following disastrous local election results for Labour.