Costain sets aside £45m after losing Welsh roads job ruling