Agency’s warning of weakening public finances underlines challenges facing new prime minister François Bayrou