US gas prices at the pump rise for the first time in three months