Prime Minister Mahinda Rajapaksa resigns amid public anger