An education authority may provide and maintain hostels for pupils attending educational establishments in their area.