Portugal EU/IMF bailout deal agreed