Sri Lanka's military attempts to reach thousands of people stranded in their homes after the country was hit by the worst flooding in 25 years.