Foreign Secretary William Hague expects his Liberal Democrat partners to stay committed to the Coalition despite heavy election losses.