Rainbow trapping of water waves