A man caused chaos on the M48 after climbing a tower of the Severn Bridge and attempting to fly a drone from it, a court has heard.