The Government has announced a “record” £2.65 billion to build and maintain flood defences over the next two years to protect thousands of homes.