The prime minister says convicts should face longer prison sentences for their crimes following the attack on London Bridge.